package com.mrzhou.mybatis.base;

import com.baomidou.mybatisplus.annotation.TableLogic;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 实体类父类
 * @author qiang.zhou
 */
@Getter
@Setter
public class BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键id")
    private Long id;

    /**  将后台的的状态转成字符, 方便前端使用自定义的字典组件DictTag */
    @ApiModelProperty("用户状态; 0禁用, 1正常")
    private Integer status;

    @TableLogic
    @ApiModelProperty("是否删除; 0删除, 1正常")
    private Integer isDelete;

    @ApiModelProperty("创建人")
    private Long createUser;

    @ApiModelProperty("创建部门")
    private Long createDept;

    @ApiModelProperty("创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty("更新人")
    private Long updateUser;

    @ApiModelProperty("更新时间")
    private LocalDateTime updateTime;

}
